package com.goblin.model.uaa.service;

import com.goblin.common.response.PageHelper;
import com.goblin.common.response.Paged;
import com.goblin.model.uaa.po.Role;
import com.goblin.model.uaa.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
	private RoleRepository roleRepository;

	@Override
	public Paged<Role> paged(PageHelper pageable) {
		return this.roleRepository.paged(pageable);
	}

	@Override
	public Role save(Role role) {
		return this.roleRepository.save(role);
	}

}
